//package cn.itsource.quartz.service.impl;
//
//import cn.itsource.quartz.service.IQuartzService;
//import cn.itsource.quartz.util.QuartzUtil;
//import org.junit.Test;
//import org.quartz.Scheduler;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//import java.util.Date;
//
//@Service
//public class QuartzServiceImpl implements IQuartzService {
//
//    @Autowired
//    private Scheduler scheduler;
//
//    @Override
//    public void addOrderExpireJob(String jobName,Class cls,Object params, Date excuteTime) {
//        System.out.println("添加定时任务.....");
//        QuartzUtil.addJob(scheduler, //容器
//                jobName, //名字
//                cls,    //工作的类
//                params ,//参数
//                excuteTime); //执行时间
//    }
//}
